package com.bigfire.dtm.dal.entity.user;

import com.bigfire.dtm.dal.entity.tenant.TenantEntry;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;

/**
 * 用户基础信息数据项
 * @author Damon S.
 * @version v1.0.1
 * @date 2019年11月03日 21:46
 */
@Entity
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "t_user_1", catalog = "db_settlement")
public final class UserInfoEntry extends TenantEntry {
    @Id
    @NotNull
    @Column(name = "user_id")
    private Long userId;

    @Column
    private String username;

    @Column
    private String password;

    @Column
    private String nickname;

    @Column
    private Integer gender;

    @Email
    @Column
    private String email;

    @Column
    private String avatar;

    @Column
    private Integer state;
}
